package com.base;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.retry.annotation.EnableRetry;

@SpringCloudApplication
@MapperScan(basePackages = {"com.base.domain.mapper"})
@EnableRetry
public class BaseApplication {

    /**
     * Main
     *
     * @param args args
     * @description:
     */
    public static void main(String[] args) {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
//
//        context.start();

        ConfigurableApplicationContext applicationContext = SpringApplication.run(BaseApplication.class, args);
    }
}